﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WL_Store.BLL;
using WL_Store.Model;

namespace WL_Store.Web.subpage
{
    public partial class admin_info : System.Web.UI.Page
    {
        public EmployeeInfoModel myInfo = new EmployeeInfoModel();
        protected void Page_Load(object sender, EventArgs e)
        {
            EmployeeInfoModel model = new EmployeeInfoModel();
            model=Session["EmployeeInfo"] as EmployeeInfoModel;

            if (model!=null)
            {
                myInfo = model;
            }
            if (!IsPostBack)
            {
                BindLogs();
            }
            
        }

        private void BindLogs()
        {
            LoginLogsBLL bll = new LoginLogsBLL();
            List<LoginLogsModel> lt= bll.GetLoginLogs();
            rpt_Logs.DataSource = lt;
            rpt_Logs.DataBind();


        }
    }
}